package com.qianfeng.service.impl;

import com.qianfeng.mapper.OrderTableMapper;
import com.qianfeng.mapper.UserTableMapper;
import com.qianfeng.pojo.OrderTable;
import com.qianfeng.pojo.UserTable;
import com.qianfeng.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author admin
 * @date 2021/9/23 10:16
 */
@Service
public class OrderServicelmpl implements OrderService {
    @Autowired
    private OrderTableMapper orderTableMapper;

    @Override
    public List<UserTable> findAdd() {
        return orderTableMapper.selectByExample(null);
    }

    @Override
    public List<UserTable> excel(Integer[] ids) {
        return null;
    }

    @Override
    public void deleteUserById(Integer id) {
        orderTableMapper.deleteByPrimaryKey(id);
    }

    @Override
    public void updateOrderTable(OrderTable orderTable) {

        orderTableMapper.updateOder(orderTable);
    }

}


